import { fetch } from '@tauri-apps/plugin-http';

export async function updateImage(params) {
	const response = await fetch('http://127.0.0.1:7001/app/upload.php', {
		method: 'POST',
		body: params
	});
	const res = await response.json();
	console.log('返回数据', res);
	return res;
}